﻿namespace FreeSpaceCleaner
{
    using System;

    /// <summary>
    /// Class to store Logical Disk information
    /// </summary>
    internal class LogicalDisk : IComparable
    {
        public string DeviceId;
        public HardDrive Hdd;

        public int CompareTo(object obj)
        {
            if (!(obj is LogicalDisk))
            {
                throw new ArgumentException("object is not a Logical Disk");
            }
            LogicalDisk disk = (LogicalDisk) obj;
            return this.DeviceId.CompareTo(disk.DeviceId);
        }
    }
}

